<?php
/**
 * Created by PhpStorm.
 * User: zsd
 * Date: 2017/3/24
 * Time: 13:31
 * Email:zsd_it@163.com
 */
namespace App\Api\V1\Controllers;

class UserController extends BaseController{

    /**
     * 测试获取 用户信息
     */
    public function index(){

        $data   =   array(
            'ab'    =>  '一般',
            'cd'    =>  '良好'
        );

        $data   =   collect($data);
//        return $this->response->array($data);

//        return $this->response->collection($data,new UserTransformer);

//        return $this->response->noContent();

        return $this->response->error('Some thing look like wrong','404');

    }

}